package com.x86.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 风亦未止
 * @date 2022/3/26 15:20
 */
@ApiModel(value = "管理员对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`admin`")
public class Admin implements Serializable {
    /**
     * 管理员id
     */
    @TableId(value = "uid", type = IdType.INPUT)
    @ApiModelProperty(value = "管理员id")
    private Long uid;

    @TableField(value = "username")
    @ApiModelProperty(value = "用户名")
    private String username;

    @TableField(value = "`password`")
    @ApiModelProperty(value = "密码")
    private String password;

    private static final long serialVersionUID = 1L;

    public static final String COL_UID = "uid";

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";
}